package com.greendragon.web.action.account; 

import java.util.Map;

import com.greendragon.control.constant.GlobalConstants;
import com.greendragon.util.CookieUtil;
import com.greendragon.web.action.BaseAction;

/** 
 * @author wulibin, exceptsky@gmail.com, 2011-11-13 上午10:12:29
 * 
 */
public class LogoutAction extends BaseAction{
	private static final long serialVersionUID = -4891270189907940200L;

	public String execute() throws Exception{
		Map<String,Object> session = getSession();
		session.remove(GlobalConstants.SESSION_LOGIN_USER);
		CookieUtil.removeCookie(getResponse(), GlobalConstants.COOKIE_REMEMBER_ME);
		return SUCCESS;
	}
}
 